import http from '@/utils/http'

export const getCollectionByUserIdAPI=(userId,current)=>{
    return http({
        url:'/api/collection',
        method:'GET',
        params:{userId,current}
    })
}

export const isCollectedAPI=(userId,storeId)=>{
    return http({
        url:'/api/collection/is',
        method:'POST',
        params:{userId,storeId}
    })
}

export const addCollectionAPI=(data)=>{
    return http({
        url:'/api/collection',
        method:'PUT',
        data
    })
}

export const deleteCollectionAPI=(data)=>{
    return http({
        url:'/api/collection',
        method:'DELETE',
        data
    })
}